diff --git a/app/server.py b/app/server.py index b4c1eb5..fe6c104 100644 --- a/app/server.py +++ b/app/server.py @@ -192,6 +192,12 @@ async def vultr_regions(request): json_body = await r.json() return web.json_response(json_body) + +@routes.get('/scaleway_config') +async def check_scaleway_config(request): + return web.json_response({"ok": 'SCW_TOKEN' in os.environ}) + + app = web.Application() app.router.add_routes(routes) app.add_routes([web.static('/static', join(PROJECT_ROOT, 'app', 'static'))]) diff --git a/app/static/provider-scaleway.vue b/app/static/provider-scaleway.vue new file mode 100644 index 0000000..d8fcf73 --- /dev/null +++ b/app/static/provider-scaleway.vue @@ -0,0 +1,96 @@ + + + + + Enter your auth token + ? + + Token was read from the environment + + + + + + + + + Next + + + + + \ No newline at end of file diff --git a/app/static/provider-setup.vue b/app/static/provider-setup.vue index e7fb41c..89bcf44 100644 --- a/app/static/provider-setup.vue +++ b/app/static/provider-setup.vue @@ -61,7 +61,8 @@ module.exports = { 'lightsail': window.httpVueLoader('/static/provider-lightsail.vue'), 'ec2': window.httpVueLoader('/static/provider-ec2.vue'), 'gce': window.httpVueLoader('/static/provider-gce.vue'), - 'vultr': window.httpVueLoader('/static/provider-vultr.vue') + 'vultr': window.httpVueLoader('/static/provider-vultr.vue'), + 'scaleway': window.httpVueLoader('/static/provider-scaleway.vue') } };
Token was read from the environment