From fa876124752f5e5e3efd02ed110ef8fc39a05a73 Mon Sep 17 00:00:00 2001 From: wess Date: Wed, 29 Mar 2023 08:58:27 -0400 Subject: [PATCH] initial actions for domains endpoint --- app/console | 2 +- app/controllers/api/domains.php | 88 +++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 app/controllers/api/domains.php diff --git a/app/console b/app/console index 5e2a40c1e3..de73c020a7 160000 --- a/app/console +++ b/app/console @@ -1 +1 @@ -Subproject commit 5e2a40c1e397bd341a432698c9d76a3f96315841 +Subproject commit de73c020a7798e580c48197816124ca4783e115b diff --git a/app/controllers/api/domains.php b/app/controllers/api/domains.php new file mode 100644 index 0000000000..ff9d734f4a --- /dev/null +++ b/app/controllers/api/domains.php @@ -0,0 +1,88 @@ +groups(['domains']) + ->inject('domain') + ->action(function (Document $domain) { +}); + +App::post('/v1/domains') + ->action(function () { + +}); + +App::post('/v1/domains/purchase') + ->action(function () { + +}); + +App::post('/v1/domains/transfer/in') + ->action(function () { + +}); + +App::post('/v1/domains/transfer/out') + ->action(function () { + +}); + +App::get('/v1/domains') + ->action(function () { + +}); + +App::get('/v1/domains/:domainId') + ->action(function () { + +}); + +App::patch('/v1/domains/:domainId/nameservers') + ->action(function () { + +}); + +App::patch('/v1/domains/:domainId/project') + ->action(function () { + +}); + +App::delete('/v1/domains/:domainId') + ->action(function () { + +}); \ No newline at end of file