гадали, что могло пойти не так
```function rest.start(userapi_config) config = userapi_config local APP_DIR = config and config.APP_DIR local APP_PORT = config and config.APP_PORT local httpd = require('http.server') local server = httpd.new(nil, APP_PORT, { app_dir = APP_DIR }) server:route({ path = '/', file = 'index.html' }) server:route({ path = '/user/list' }, rest.user_list) server:route({ path = '/user/create' }, rest.user_registration) server:route({ path = '/user/deactivate' }, rest.user_deactivate) server:route({ path = '/user/signin' }, rest.user_signin) server:route({ path = '/user/status' }, rest.user_status) server:route({ path = '/user/device' }, rest.user_device) server:route({ path = '/user/session' }, rest.user_session) server:route({ path = '/user/password/change' }, rest.user_change_password) server:route({ path = '/user/password/reset' }, rest.user_reset_password) server:start() end
Обсуждают сегодня