]> git.ipfire.org Git - thirdparty/pdns.git/commit
api: share apiServer* code across auth, recursor
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Thu, 30 Jan 2014 22:31:30 +0000 (23:31 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Mon, 3 Feb 2014 14:06:19 +0000 (15:06 +0100)
commit6ec5e728152684454b3358f4daa21f75362e50d6
treea4a5594f783a865e08601fb0b1a40d1aca06fc52
parent3e135495e703cc7a0f6b7eedccc6c36246cb9d52
api: share apiServer* code across auth, recursor

Gives us "free" implementations of /servers, /servers/localhost,
/servers/localhost/{config, search-log, statistics} for the recursor.

Move JSON helper functions from ws-auth.cc to json.cc; turn
parseJsonBody into HttpRequest::json().
12 files changed:
pdns/Makefile-recursor
pdns/Makefile.am
pdns/dist-recursor
pdns/json.cc
pdns/json.hh
pdns/webserver.cc
pdns/webserver.hh
pdns/ws-api.cc [new file with mode: 0644]
pdns/ws-api.hh [new file with mode: 0644]
pdns/ws-auth.cc
pdns/ws-recursor.cc
pdns/ws-recursor.hh