Adds a file (data.json) that can be modified during runtime by admins (set in environment variables) that can control few things in Aspine, such as the announcement banner. It 100% works so far (at least on my machine) but however, there are a few issues:
The admin envion var is obtained with process.env['admins'] and is formatted as "admins": "[1234567, 1234567]" (This might not be compatible with the ICTS' hosting and may need to be changed)
Client-side javascript is... not the cleanest (getData functions are defined at two places, might want to merge the two)
Currently, I'm hosting it on Replit (check it out here) and the serverdata is requestable via this URL. You can see how I format stuff with the previous link.
(Please note that this is my first ever pull request and I have no clue if I'm doing it correctly)
Adds a file (
data.json
) that can be modified during runtime by admins (set in environment variables) that can control few things in Aspine, such as the announcement banner. It 100% works so far (at least on my machine) but however, there are a few issues:process.env['admins']
and is formatted as"admins": "[1234567, 1234567]"
(This might not be compatible with the ICTS' hosting and may need to be changed)getData
functions are defined at two places, might want to merge the two)Currently, I'm hosting it on Replit (check it out here) and the serverdata is requestable via this URL. You can see how I format stuff with the previous link.
(Please note that this is my first ever pull request and I have no clue if I'm doing it correctly)